PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-08-27 10:22:15.195577+00:00 (UTC)
In US/Central Time, this is 2024-08-27 05:22:15.195577-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/c744da6c6f9eb036dfee86dd8fe1f3150d67b752b0fa7cfd5f8ef93873291ad4.png
We are just generating a random time serie here.
../_images/e1d5e1b5cf878e862d98e49c9733ca169314afe28ee6e4198105cfebad292cda.png
../_images/64bc170d8371fb87085e26993e29829701a0fbd94c584f0f9f352f88eccf8cf7.png